package com.lyx.bank.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lyx.bank.entity.TransactionRecord;
import org.apache.ibatis.annotations.Param;


import java.util.Date;
import java.util.List;

/**
 * @ClassName RecordsMapper
 * @Description: TODO
 * @Author 86152
 * @Date 2022/4/24
 * @Version V1.0
 **/
public interface RecordsMapper extends BaseMapper<TransactionRecord> {


    List<TransactionRecord> getRecord(
           @Param("page") Page<TransactionRecord> page,
            @Param("cardNo") String cardNo,
            @Param("oneDate") String oneDate,
            @Param("towDate") String towDate
    );

    void createdRecords(
            @Param("cardNo") String cardNo ,
            @Param("transactionDate") Date transactionDate,
            @Param("amout") Double amout,
            @Param("balance")  Double balance,
            @Param("transactionType")  String transactionType,
            @Param("remark")  String remark
    );




}